# Maintainer: ovf <ovf@mm.st>
pkgname=bochs
pkgver=2.8
pkgrel=0
pkgdesc="A highly portable open source IA-32 (x86) PC emulator"
url="https://bochs.sourceforge.io/"
arch="all"
license="LGPL-2.1"
makedepends="linux-headers sdl2-dev"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/bochs/bochs/$pkgver/bochs-$pkgver.tar.gz"
options="!check" #no tests

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-sdl2
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0637dd52e4a949e3cbf2cc0d17fa56a92d1b89bbc80c9eeb4f9669ca83d4668babe9edcf98a53ae7ee6a43f937fe4020b065e3d1328728171090de3662a5472d  bochs-2.8.tar.gz
"
